import { lazy } from "react"
import { Navigate } from "react-router-dom"

const Home = lazy(() => import('@/views/home'))
const Detail = lazy(() => import('@/views/detail'))

const routes = [
  {
    path: '/',
    element: <Navigate to="/home" />
  },
  {
    path: '/home',
    element: <Home />
  },
  {
    path: '/detail',
    element: <Detail />
  }
]

export default routes